package com.baidu.bulls.stock.admin.user.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;

@Configuration
public class JpaConverConfig {

    public Converter<String,Long> longConverter(){
        return new Converter<String, Long>() {
            @Override
            public Long convert(String source) {
                return Long.parseLong(source);
            }
        };

    }


}
